//
//  BaoxiuCell.swift
//  Xiaozihui
//
//  Created by 校企荟 on 2017/10/10.
//  Copyright © 2017年 校企荟. All rights reserved.
//

import UIKit

class BaoxiuCell: BaseTableViewCell {

    lazy var btn: UIButton = {
        let btn = UIButton()
        btn.backgroundColor = mainColor
        btn.layer.cornerRadius = 5
        btn.layer.masksToBounds = true
        btn.setImage(#imageLiteral(resourceName: "Home_Baoxiu"), for: .normal)
        return btn
    }()
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }
    
    
    override func setupUI() {
        contentView.addSubview(btn)
        btn.snp.makeConstraints { (make) in
            make.left.top.equalTo(contentView).offset(10)
            make.right.bottom.equalTo(contentView).offset(-10)
            make.height.equalTo(50 * ScaleX)
        }
    }
}
